package com.ruoyi.project.fire.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.fire.mapper.FireDormitoryMapper;
import com.ruoyi.project.fire.domain.FireDormitory;
import com.ruoyi.project.fire.service.IFireDormitoryService;

/**
 * 寝室消息管理Service业务层处理
 * 
 * @author 布衣
 * @date 2025-05-13
 */
@Service
public class FireDormitoryServiceImpl implements IFireDormitoryService 
{
    @Autowired
    private FireDormitoryMapper fireDormitoryMapper;

    /**
     * 查询寝室消息管理
     * 
     * @param dormitoryId 寝室消息管理主键
     * @return 寝室消息管理
     */
    @Override
    public FireDormitory selectFireDormitoryByDormitoryId(Long dormitoryId)
    {
        return fireDormitoryMapper.selectFireDormitoryByDormitoryId(dormitoryId);
    }

    /**
     * 查询寝室消息管理列表
     * 
     * @param fireDormitory 寝室消息管理
     * @return 寝室消息管理
     */
    @Override
    public List<FireDormitory> selectFireDormitoryList(FireDormitory fireDormitory)
    {
        return fireDormitoryMapper.selectFireDormitoryList(fireDormitory);
    }

    /**
     * 新增寝室消息管理
     * 
     * @param fireDormitory 寝室消息管理
     * @return 结果
     */
    @Override
    public int insertFireDormitory(FireDormitory fireDormitory)
    {
        return fireDormitoryMapper.insertFireDormitory(fireDormitory);
    }

    /**
     * 修改寝室消息管理
     * 
     * @param fireDormitory 寝室消息管理
     * @return 结果
     */
    @Override
    public int updateFireDormitory(FireDormitory fireDormitory)
    {
        return fireDormitoryMapper.updateFireDormitory(fireDormitory);
    }

    /**
     * 批量删除寝室消息管理
     * 
     * @param dormitoryIds 需要删除的寝室消息管理主键
     * @return 结果
     */
    @Override
    public int deleteFireDormitoryByDormitoryIds(Long[] dormitoryIds)
    {
        return fireDormitoryMapper.deleteFireDormitoryByDormitoryIds(dormitoryIds);
    }

    /**
     * 删除寝室消息管理信息
     * 
     * @param dormitoryId 寝室消息管理主键
     * @return 结果
     */
    @Override
    public int deleteFireDormitoryByDormitoryId(Long dormitoryId)
    {
        return fireDormitoryMapper.deleteFireDormitoryByDormitoryId(dormitoryId);
    }
}
